#ifndef SIZEDIALOG_H
#define SIZEDIALOG_H

#include <gtkmm.h>
#include "display.h"
#include "fractal.h"

class SizeDialog : public Gtk::Dialog {
	public:
		SizeDialog(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& refGlade);
		void setFractal(Fractal* fractal);
	private:
		void on_togglebutton_lockratio_clicked();
		void on_entry_width_insert(const Glib::ustring& str);
		void on_entry_height_insert(const Glib::ustring& str);
		void on_button_ok_clicked();
	
		float ratio_;
	
		Gtk::Button* button_ok_;
		Gtk::Button* button_cancel_;
		Gtk::ToggleButton* togglebutton_lockratio_;
		Gtk::Entry* entry_width_;
		Gtk::Entry* entry_height_;
		
		Fractal* fractal_;
};

#endif
